import request from "../axios";

const api = {
    //创建订单
    order_create(data) {
        return request({
            url: "/trade/inner-mall/order/create",
            method: "POST",
            data: data,
        });
    },
    //获取订单分页
    order_page(params) {
        return request({
            url: "/trade/inner-mall/order/page",
            method: "GET",
            params: params,
        });
    },
    //提交支付订单
    order_submit(data) {
        return request({
            url: "/pay/order/submit",
            method: "POST",
            data: data,
        });
    },
   
};

export default api;
